<!DOCTYPE html>
<html lang="en">
<head>
	{include file="common/header" /}
	<title>拼场</title>
</head>
<body>
	<div class="container margin-top">
		<div class="row">
			<div class="col-md-offset-1 col-md-10 col-xs-10">
				<img src="{$Think.STATIC_PATH}/image/nyx.jpg" alt="" width="100%">
			</div>
			<div class="col-md-1 col-xs-2 margin">
				<a href="{:url('Index/index')}">返回</a>
			</div>
		</div>
		<div class="row margin-top">
			<div class="col-md-offset-1 col-md-10 col-xs-12">
				<p class="text-center">
					<strong>当前教球信息</strong>
				</p>
				<hr style="border:0;background-color:#ff0000;height:1px;margin: 5px">
			</div>
		</div>
		<div class="row margin-top padding-bottom">
			<div class="col-md-offset-2 col-md-8 col-xs-12">
				<div class="panel-group" id="accordion">
					{volist name="teaching" id="list"}
					    <div class="panel panel-default">
		                	<div class="row margin-top margin-left">
								<div class="col-xs-7 col-ms-7 margin-top"> 
									<p>参与人:{$list.now}/{$list.max} </p>
									<p>时长:{$list.time}</p>
									<p>时间:{$list.begin}</p> 
								</div>
								<div class="col-xs-4 col-ms-4 margin">
									<p class="text-right">
										<a href="{:url('Together/c_insert')}?id={$list.id}">
											<button class="btn-block btn-xs btn-info margin-top">
												加入训练
											</button>
										</a>
										<a data-toggle="collapse" data-parent="#accordion" href="#collapse{$list.id}">	
											<button class="btn-block btn-xs btn-info margin-top">
												教学内容
											</button>
										</a>
										<button class="btn-block btn-xs btn-info margin-top" onclick="copy_teaching({$list.id})">
											复制链接
										</button>
									</p>
								</div>
							</div>
					        <div id="collapse{$list.id}" class="panel-collapse collapse">
					            <div class="panel-body">
					                {$list.tips}
					            </div>
					        </div>
					    </div>
				    {/volist}
				</div>
			</div>
		</div>
	</div>
	{include file="common/footer" /}
</body>
</html>